import http from "@/utils/http";

const nodeInfo = {
  // 获取节点信息
  getNodeInfo: (data:any) => {
    return http.post('/node/getNodeInfo',data);
  },


 updateNodeById: (data:any) => {
 return http.put('/node/updateNode',data)
 },
 
getNodeById: (data:string) => {
 return http.get(`/node/getNodeById/${data}`,{})
 },
 insertnewNode: (data:any) => {
    return http.post('/node/insert',data);
  },
  deleteNodeById: (data:any) => {
    return http.delete('/node/deleteNode',data)
  },
};
export default nodeInfo;    
